Skip to content

Cache request line in HttpRequestWrapper#32

Closed
hirthwork wants to merge 1 commit into
apache:4.5.xfrom
hirthwork:4.5.x
Closed

Cache request line in HttpRequestWrapper#32
hirthwork wants to merge 1 commit into
apache:4.5.xfrom
hirthwork:4.5.x

Conversation

@hirthwork
Copy link
Copy Markdown

Copy of #31 for 4.5.x

For each request HttpAsyncClient calls HttpRequestWrapper.getRequestLine() 8 times during single request execution. For URIs containing non-ASCII characters this causes tons of allocations and completely ruins performance.
According to out tests RequestLine caching successfully addresses the issue with the cost of single long living object.

@ok2c
Copy link
Copy Markdown
Member

ok2c commented Jun 4, 2015

Committed to SVN trunk and 4.5.x branch.
http://svn.apache.org/r1683475

@hirthwork hirthwork closed this Jun 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants